package com.sunarp.vehiculo;

public class WSInfoSunarpProxy implements com.sunarp.vehiculo.WSInfoSunarp {
  private String _endpoint = null;
  private com.sunarp.vehiculo.WSInfoSunarp wSInfoSunarp = null;
  
  public WSInfoSunarpProxy() {
    _initWSInfoSunarpProxy();
  }
  
  public WSInfoSunarpProxy(String endpoint) {
    _endpoint = endpoint;
    _initWSInfoSunarpProxy();
  }
  
  private void _initWSInfoSunarpProxy() {
    try {
      wSInfoSunarp = (new com.sunarp.vehiculo.WSInfoSunarpServiceLocator()).getWSInfoSunarp();
      if (wSInfoSunarp != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)wSInfoSunarp)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)wSInfoSunarp)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (wSInfoSunarp != null)
      ((javax.xml.rpc.Stub)wSInfoSunarp)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.sunarp.vehiculo.WSInfoSunarp getWSInfoSunarp() {
    if (wSInfoSunarp == null)
      _initWSInfoSunarpProxy();
    return wSInfoSunarp;
  }
  
  public java.lang.String mostrarMarca() throws java.rmi.RemoteException{
    if (wSInfoSunarp == null)
      _initWSInfoSunarpProxy();
    return wSInfoSunarp.mostrarMarca();
  }
  
  public java.lang.String mostrarModelo() throws java.rmi.RemoteException{
    if (wSInfoSunarp == null)
      _initWSInfoSunarpProxy();
    return wSInfoSunarp.mostrarModelo();
  }
  
  public java.lang.String mostrarPlaca() throws java.rmi.RemoteException{
    if (wSInfoSunarp == null)
      _initWSInfoSunarpProxy();
    return wSInfoSunarp.mostrarPlaca();
  }
  
  public java.lang.String mostrarColor() throws java.rmi.RemoteException{
    if (wSInfoSunarp == null)
      _initWSInfoSunarpProxy();
    return wSInfoSunarp.mostrarColor();
  }
  
  public java.lang.String mostrarAnio() throws java.rmi.RemoteException{
    if (wSInfoSunarp == null)
      _initWSInfoSunarpProxy();
    return wSInfoSunarp.mostrarAnio();
  }
  
  public java.lang.String buscarVehiculoPorPlaca(java.lang.String nPlaca) throws java.rmi.RemoteException{
    if (wSInfoSunarp == null)
      _initWSInfoSunarpProxy();
    return wSInfoSunarp.buscarVehiculoPorPlaca(nPlaca);
  }
  
  public boolean buscarVehiculoXPlaca(java.lang.String nPlaca) throws java.rmi.RemoteException{
    if (wSInfoSunarp == null)
      _initWSInfoSunarpProxy();
    return wSInfoSunarp.buscarVehiculoXPlaca(nPlaca);
  }
  
  
}